package com.luckyframe.project.jmeter.jmeterAlertConfig.domain;

import com.luckyframe.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 告警配置表 jmeter_alert_config
 * 
 * @author lancelot
 * @date 2020-11-23
 */
public class JmeterAlertConfig extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** id */
	private Long id;
	/** caseId */
	private Long caseId;
	/** 用例名称 */
	private String caseName;
	/** 并发数阈值 */
	private Integer threadThreshold;
	/** 1启用 0禁用 */
	private Integer status;
	/** TPS阈值 */
	private Double tps;
	/** 平均响应时间 */
	private Double successRatio;
	/** 平均响应时间 */
	private Double avgRespTime;
	/** 95line时间 */
	private Double line95;
	/** 创建时间 */
	private Date createTime;
	/** 更新者 */
	private String updateBy;
	/** 修改时间 */
	private Date updateTime;
	/** 备注 */
	private String remark;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setCaseId(Long caseId) 
	{
		this.caseId = caseId;
	}

	public Long getCaseId() 
	{
		return caseId;
	}
	public void setCaseName(String caseName) 
	{
		this.caseName = caseName;
	}

	public String getCaseName() 
	{
		return caseName;
	}
	public void setThreadThreshold(Integer threadThreshold) 
	{
		this.threadThreshold = threadThreshold;
	}

	public Integer getThreadThreshold() 
	{
		return threadThreshold;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setTps(Double tps) 
	{
		this.tps = tps;
	}

	public Double getTps() 
	{
		return tps;
	}
	public void setSuccessRatio(Double successRatio) 
	{
		this.successRatio = successRatio;
	}

	public Double getSuccessRatio() 
	{
		return successRatio;
	}
	public void setAvgRespTime(Double avgRespTime) 
	{
		this.avgRespTime = avgRespTime;
	}

	public Double getAvgRespTime() 
	{
		return avgRespTime;
	}
	public void setLine95(Double line95) 
	{
		this.line95 = line95;
	}

	public Double getLine95() 
	{
		return line95;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("caseId", getCaseId())
            .append("caseName", getCaseName())
            .append("threadThreshold", getThreadThreshold())
            .append("status", getStatus())
            .append("tps", getTps())
            .append("successRatio", getSuccessRatio())
            .append("avgRespTime", getAvgRespTime())
            .append("line95", getLine95())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
